package com.bwie.system.service.impl;

import com.bwie.common.domain.SysUser;
import com.bwie.system.mapper.SysUserMapper;
import com.bwie.system.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysUserServiceImpl implements SysUserService {
    @Autowired
    private SysUserMapper sysUserMapper;

    /**
     * 根据用户名获取用户信息
     * @param username
     * @return
     */
    @Override
    public SysUser selectOneByName(String username) {
        return sysUserMapper.selectOneByName(username);
    }
}
